package ninesky.ContentTemp.util;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class ImageUtil {

	public static Bitmap getWebImage(String u){
		try {
			URL url = new URL(u);
			Bitmap bitmap = BitmapFactory.decodeStream(url.openStream());
			return bitmap;
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}
